// Quest (<identifier>, <"Questgiver character name">, <number of dialog steps>)
//
// Conditions:
// 				ConditionVisitArea <"logic box name"> <number of player characters>
//				ConditionConquerLocation <location id>
//				ConditionKillType <"character name"> <count>
//				ConditionItems <equipment id> <count>
//
// Rewards:
//				RewardMoney	<100>
//				RewardItem	<equipment id> <count>
//				RewardJoin
//				RewardUnlockQuest <quest id>
//        RewardUnlockTrader <"trader name">
//				RewardAchievement <achievement id> (as in docs/jar_steam_achievements.odt or as in EAchievement+1)
//
// ReportFile <report file id>
//
// UnlockedByDefault  (quest is available from beginning)
// ActiveByDefault (quest is in log from beginning)
//
// TimeLimit	<Number of days>		(quest has to be solved in given time, default: no limit)
//
// SetDestinationNPC "Questtarget character name"
//

// Quests for Testing added by Peter
// Made Test Quest1 = Area Trigger, Made Test Quest 2 = Kill Slay, Made Q4 unlock Q3, Updated quest.xml to fit quests


//////////////////////////////////////
//----------ADDON QUETS-------------//
//////////////////////////////////////

Quest (501, "", 1)
{
	//=-Liberate the country-=
	//Liberate every sector
	ActiveByDefault
	
	MainQuest
	
	ConditionConquerLocation 101
	ConditionConquerLocation 102
	ConditionConquerLocation 103
	ConditionConquerLocation 104
	ConditionConquerLocation 105
	ConditionConquerLocation 106
	ConditionConquerLocation 107
	ConditionConquerLocation 108
	ConditionConquerLocation 109
	ConditionConquerLocation 110
	ConditionConquerLocation 111
	ConditionConquerLocation 113
	ConditionConquerLocation 114
	ConditionConquerLocation 115

	SetDestinationNPC "Behnam"
	
}


Quest (517, "Arjuna", 8)
{
	//=-The holy Y and Z-=
	//The monk tells you of the reliquies that needs to befind before the end of blabla..
		
	ConditionItems 849 1 //Reliquie 1 Amulett
	ConditionItems 850 1 //Reliquie 2 Zepter
	ConditionItems 851 1 //Reliquie 3 Ring
	
	TimeLimit 3

}

Quest (519, "", 0)
{
	//=-Eliminate Jurjen Bolazwen-=
	//Kill Jurjen Bolazwen in order to complete this quest
	ActiveByDefault
		
	ConditionKillType "Jurjen" 1
	
	SetDestinationNPC "Arjuna"

	RewardUnlockQuest 517 //Unlocks the find holy reliquie by arjuna
	RewardUnlockQuest 511 //Unlocks talk with Jaya in village to get amulett
}

Quest (502, "Siavash", 4)
{
	//=-The missing monks-=
	//Find the dead bodies of his brothers and report it
	UnlockedByDefault
	
	ConditionVisitArea "quest_2_deadmonks_00" 1
		
	RewardItem 105 1 //Bandages
}

Quest (503, "Mai", 3)
{
	//=-Miner, my love-=
	//Find the key to the locked miner
	UnlockedByDefault
	
	ConditionVisitArea "quest_3_jamshed_00" 1
	
	SetDestinationNPC "Jamshed"
	
	RewardItem 160 3 //C4 Explosives
	RewardJoin
}

Quest (504, "Sanjaya", 4)
{
	//=-Clear the streets-=
	//Liberate the roadblock
	UnlockedByDefault
	
	ConditionConquerLocation 111
	
	SetDestinationNPC "Hasim"
	
	RewardUnlockQuest 505 //Unlocks the suffering villagers that want you to take back their villages
	
	RewardUnlockTrader "Hasim"
	
}

Quest (505, "Ehsan", 3)
{
	//=-Make them suffer-=
	//Liberate coast houses and village
	
	ConditionConquerLocation 102
	ConditionConquerLocation 106
	
	RewardItem 843 2 //Two golden necklaces
	RewardItem 842 1 //One golden watch
	RewardItem 841 1 //One golden family hairloom
	RewardItem 828 1 //Flawless Diamond
	//11.000 dollar worth + Diamond
	
}

Quest (506, "Dodo", 3)
{
	//=-A ton of merchandise-=
	//Find some goods in the village
	UnlockedByDefault
	
	ConditionItems 847 3 //Find three crates of Nippes (ITEM DOES NOT YET EXIST WRONG ID)
	
	RewardMoney 20000 //Gives you 20000 dollar for finding some valueable goods, selling the goods should give you less
	RewardUnlockQuest 512
	
}

Quest (507, "Pema", 3)
{
	//=-The missing son-=
	//Talk to the buddies at the harbour
	UnlockedByDefault
	
	ConditionVisitArea "quest_7_crooks_00" 1
	
	SetDestinationNPC "Dilshad"
	RewardUnlockQuest 508

}

Quest (508, "Dilshad", 3)
{
	//=-Mixing with the wrong crowd-=
	//Find the son, means get his suitcase, all that is left of him, the item is protected
	//..by the gangster there, so you probably have to take them out.
		
	ConditionItems 848 1 //The missing sons suitcase
	
	SetDestinationNPC "Pema"
	
	RewardMoney 42350 //She gives you the money in the suitcase for investigating
		
}

Quest (509, "Masoud", 3)
{
	//=-Tell them i am safe-=
	//Talk to the mother/family at the harbour
	UnlockedByDefault
		
	ConditionVisitArea "quest_9_family_00" 1
	
	SetDestinationNPC "Linh"
	
	RewardUnlockQuest 510
		
}

Quest (510, "Linh", 3)
{
	//=-The call of War-=
	//The mother tells you that the son went towards the temple and he wants to fight
		
	ConditionVisitArea "quest_9_family_00" 1
	
	SetDestinationNPC "Masoud"
	
	RewardItem 202 1 //Key for secret room
	RewardUnlockQuest 515
		
}

Quest (511, "Jaya", 4)
{
	//=-The amulett-=
	//Receive the amulett from the monk
		
	ConditionVisitArea "quest_11_jaya_00" 1

	RewardItem 849 1 //Reliquie 1 Amulett
		
}

Quest (512, "Dodo", 3)
{
	//=-Treasure Hunt-=
	//Find goods all across the land, minerals and stuff
	
	ConditionItems 852 10 //Find 10 gems (Coltan)
	
	RewardMoney 60000 //Gives you 60000 dollar for finding some minerals, they can also be sold for quite good money but all sold are maybe 20% of what your reward would be
	
	RewardUnlockTrader "Dodo"
	
}

Quest (513, "Dariush", 3)
{
	//=-With the right equipment-=
	//Find him some special euqipment
	UnlockedByDefault
	
	ConditionItems 56 1 //Get him a G36
	ConditionItems 57 1 //And a MP7
	
	RewardJoin
	
}

Quest (514, "Shenyen", 2)
{
	//=-Ashes to Ashes-=
	//Get to a specific spot
	UnlockedByDefault
	
	ConditionVisitArea "quest_14_ashes_00" 1
	
	RewardJoin
	RewardItem 76 1 // Scimitar - has to be solved this way
	
}

Quest (515, "Roshan", 4)
{
	//=-The call of War-=
	//The mother tells you that the son went towards the temple and he wants to fight
		
	ConditionVisitArea "quest_10_heroson_00" 1
	
	RewardJoin
		
}

Quest (518, "Amir", 4)
{
	//=-A Traders Reward-=
	//Bring him a reliquie, player does not know the real value of it
	UnlockedByDefault
		
	ConditionItems 851 1 //Reliquie 3 Ring
	
	RewardUnlockTrader "Amir"
	RewardMoney 3500
		
}